<!DOCTYPE html>
<html  lang="zh_CN" xmlns:th="http://www.thymeleaf.org">
<head>
    <title>订单详情</title>
    <th:block th:include="~{common/common::commonHead}"/>
</head>
<!-- /Head -->
<!-- Body -->
<body data-width="1200" data-height="800">
<div class="widget-body grid-table">
    <div id="supplierInfo"></div>
</div><!-- end of panel -->
</body>
<!--  /Body -->
</html>
<script>
    $(function () {
        var id = $.getUrlParams()['id'];
        $("#supplierInfo").gridTable({
            url: "orderSupplier/pageDetailList",
            columns: [
                {title: "商品图片", field: "img", format: toImg},
                {title: "商品名称", field: "goodsName"},
                {title: "供应价", field: "goodsSellPrice", dataType:"decimal"},
                {title: "已发货数量", field: "deliverCount",dataType:"number"},
                {title: "总数量", field: "goodsCount",dataType:"number"},
                {title: "供应商名称", field: "supplierName"},
                {title: "监狱名称", field: "prisonsName"},
                {title: "监区", field: "area"}
            ],
            onDoubleClickRow:function(){},
            params: {id:id},
            showControl: false,
            showCheckbox:false,
            multiSelect:false
        });
    });
    function toImg(url) {
        return "<img src='"+url+"' width='40' height='40'>";
    }

</script>

